package com.ellison.springdemo.restTest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description <p>TODO
 * @Author Ellison_Pei
 * @Date 2022/9/27 09:32
 * @Since 1.0
 **/
@RestController
@RequestMapping("/testRest/")
public class RestTemplateController {

    private final Logger logger = LoggerFactory.getLogger(RestTemplateController.class);
    @Autowired
    private RestTemplateService restTemplateTest;


    @GetMapping("/sendFeishu")
    public void restTest() throws Exception {
        restTemplateTest.send("测试告警文本");
    }
}
